package cn.stylefeng.guns.modular.hx.storage.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.hx.storage.entity.HxStorageOutDetailed;
import cn.stylefeng.guns.modular.hx.storage.model.params.HxStorageOutDetailedParam;
import cn.stylefeng.guns.modular.hx.storage.model.params.HxStorageOutParam;
import cn.stylefeng.guns.modular.hx.storage.model.result.HxStorageOutDetailedResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 拣货单明细表 服务类
 * </p>
 *
 * @author zhucx
 * @since 2023-09-05
 */
public interface HxStorageOutDetailedService extends IService<HxStorageOutDetailed> {

    /**
     * 新增
     *
     * @author zhucx
     * @Date 2023-09-05
     */
    void add(HxStorageOutDetailedParam param);

    /**
     * 删除
     *
     * @author zhucx
     * @Date 2023-09-05
     */
    void delete(HxStorageOutDetailedParam param);

    /**
     * 更新
     *
     * @author zhucx
     * @Date 2023-09-05
     */
    void update(HxStorageOutDetailedParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zhucx
     * @Date 2023-09-05
     */
    HxStorageOutDetailedResult findBySpec(HxStorageOutDetailedParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author zhucx
     * @Date 2023-09-05
     */
    List<HxStorageOutDetailedResult> findListBySpec(HxStorageOutDetailedParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zhucx
     * @Date 2023-09-05
     */
     LayuiPageInfo findPageBySpec(HxStorageOutDetailedParam param,String condition);
     
     LayuiPageInfo findjiluPageBySpec(HxStorageOutDetailedParam param,String condition);

	HxStorageOutDetailedResult findZySumBySpec(HxStorageOutDetailedParam hxStorageOutDetailedParam);

    HxStorageOutDetailedResult findJhZSumBySpec(HxStorageOutDetailedParam hxStorageOutDetailedParam);

    List<HxStorageOutDetailedResult> findZySumList(HxStorageOutDetailedParam hxStorageOutDetailedParam);

  	
  	boolean saveBatchList(List<HxStorageOutDetailedParam> list);

    int addByStorageNumber(String storageNumber,String newStorageNumber);

    List<HxStorageOutDetailedResult> selectGoodSNumByStorageNumber(String storageNumber);

	List<HxStorageOutDetailedResult> findApplistBySpec(HxStorageOutDetailedParam hxStorageOutDetailedParam);

    List<HxStorageOutDetailedResult> findAppzhijianDetailedlistBySpec(HxStorageOutDetailedParam hxStorageOutDetailedParam);

    List<HxStorageOutDetailedResult> findAppzhijianCountDetailedlistBySpec(HxStorageOutDetailedParam hxStorageOutDetailedParam);

    /**
     * 查询打印明细
     * @param
     * @return
     */
    List<HxStorageOutDetailedResult> findListBySpec2(HxStorageOutDetailedParam hxStorageOutDetailedParam);

    /**
     * 出库质检扫码枪
     * 更新质检数量
     * @return
     */
    void update1(HxStorageOutDetailedParam param);

	void updatequalityNumBySpec(HxStorageOutDetailedParam hxStorageOutDetailedParam);

	void updaterealNumBySpec(HxStorageOutDetailedParam hxStorageOutDetailedParam);

	boolean updateBatchList(List<HxStorageOutDetailedParam> _list2);

	boolean updateBatchList2(List<HxStorageOutDetailedParam> _list2);

	List<HxStorageOutDetailedResult> findNumNotRealNumListBySpec(HxStorageOutDetailedParam detailedParam);

	HxStorageOutDetailedResult findnewestoutDetailed(HxStorageOutDetailedParam hxStorageOutDetailedParam);

	HxStorageOutDetailedResult count(HxStorageOutDetailedParam hxStorageOutDetailedParam, String condition);

	List<HxStorageOutDetailedResult> listAll(HxStorageOutDetailedParam hxStorageOutDetailedParam, String condition);

    int updateCode(HxStorageOutDetailedParam param);

    int updateOrder(HxStorageOutDetailedParam param);
}
